<!--{subtemplate common/header}-->
<style type="text/css">
	.mla li, .mlp li { width: 152px; }
	.mla1 li { width: 146px; }
	.mgcl li { padding: 0 5px 5px; width: 350px; height: 120px; }
		.mgcl img { width: 74px; height: 74px; }
		.mgcl li p { float: right; width: 236px; text-align: left; white-space: normal; }
		.mgcl li p.xg1 { display: block; height: 36px; }
	.mdl li { width: 200px; height: 140px; }
	.mdlow li { height: 70px; }
		.mdl img { width: auto; height: auto; max-height: 35px; }
		.ie6 .mdl img { height: expression(this.height > 35 ? 35 : true); }
	.el {}
		.el li { padding: 10px 20px; min-height: 20px; border-bottom: 1px dashed #CDCDCD; }
			.ie6 .el, .ie6 .el li { position: relative; zoom: 1; }
</style>

<div id="pt" class="bm cl">
	<!--{subtemplate common/simplesearchform}-->
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G['setting']['bbname']</a> <em>&rsaquo;</em>
		<a href="home.php">$_G[setting][navs][4][navname]</a> <em>&rsaquo;</em> 
		<a href="home.php?mod=medal">{lang dsu_medalCenter:cp1}</a>
	</div>
</div>

<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<div class="bm bw0">
			<h1 class="mt"><img src="{STATICURL}image/feed/medal.gif" alt="{lang dsu_medalCenter:cp1}" class="vm" /> {lang dsu_medalCenter:cp1}</h1>

			<ul class="tb cl">
				<li{if empty($_G[gp_action]) || $_G[gp_action] == 'list'} class="a"{/if}><a href="plugin.php?id=dsu_medalCenter:memcp">{lang dsu_medalCenter:cp2}</a></li>
				<li{if $_G[gp_action] == 'mymedal'} class="a"{/if}><a href="plugin.php?id=dsu_medalCenter:memcp&action=mymedal">{lang dsu_medalCenter:cp3}</a></li>
			</ul>
			<!--{if empty($_G[gp_action]) || $_G['gp_action'] == 'list'}-->
				<form method="post" autocomplete="off" action="plugin.php?id=dsu_medalCenter:memcp&action=apply&medalsubmit=yes">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="medalid" value="" />

				<h3 class="tbmu mbw cl" style="font-weight: normal;">
					<span class="y xg1 xw0">
						<input type="checkbox" name="hidemymedal" id="hidemymedal" onclick="setcookie('dsu_medalCenter_hidemymedal', this.form.hidemymedal.checked, 86400); location.reload();" <!--{if $_G['cookie']['dsu_medalCenter_hidemymedal']}-->checked<!--{/if}--> /><label for="hidemymedal" style="color:#000">{lang dsu_medalCenter:cp4}</label>
						{lang dsu_medalCenter:cp5} $num {lang dsu_medalCenter:cp6}
					</span>
					<a href="plugin.php?id=dsu_medalCenter:memcp" <!--{if $typeid == 0}--> style="font-weight:bold"<!--{/if}-->>{lang dsu_medalCenter:cp7}</a>
					<!--{loop $typeArr $typeinfo}-->
					<span class="pipe"> | </span>
					<a href="plugin.php?id=dsu_medalCenter:memcp&typeid={$typeinfo[typeid]}" <!--{if $typeid == $typeinfo[typeid]}--> style="font-weight:bold"<!--{/if}-->>$typeinfo[name]</a>
					<!--{/loop}-->
				</h3>

				<!--{if $medallist}-->
					<ul class="ml mlm mdl cl">
						<!--{loop $medallist $key $medal}-->
						<li class="pns">
							<img src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" id="medal{$medal[medalid]}" onmouseover="showMenu({'ctrlid':'medal{$medal[medalid]}','pos':'33'});"/>
							<p class="mtn" onmouseover="showMenu({'ctrlid':'medal{$medal[medalid]}','pos':'33'});"><strong>$medal[name]</strong></p>
							<span>
								<!--{if $medal[owned]}-->
									{lang dsu_medalCenter:cp8}
								<!--{elseif $medal[type] == 0}-->
									{lang dsu_medalCenter:cp9}
								<!--{elseif $medal[type] == 1}-->
									{lang dsu_medalCenter:cp10}
								<!--{elseif $medal[type] == 2}-->
									{lang dsu_medalCenter:cp11}
								<!--{elseif $medal[type] == 5}-->
									{lang dsu_medalCenter:cp12}
								<!--{/if}-->
							</span>
							<!--{if $medal[type] && $_G['uid'] && !$medal['owned']}-->
								<button type="button" class="pn" onclick="this.form.medalid.value = '$medal[medalid]';this.form.submit();return false;">
									<em><!--{if $medal[type] == 5}-->{lang dsu_medalCenter:cp13}<!--{elseif !$medal[permission]}-->{lang dsu_medalCenter:cp14}<!--{else}-->{lang dsu_medalCenter:cp15}<!--{/if}--></em>
								</button>
							<!--{/if}-->
						</li>
						<div id="medal{$medal[medalid]}_menu" class="p_pop" style="display: none; zoom: 1; max-width: 180px; min-width: 100px;"> 
							<p class="xg1" title="$medal[description]">$medal[description]</p>
							<!--{if $medal[expiration]}-->
								<p><strong>{lang dsu_medalCenter:cp16}</strong> $medal[expiration] {lang dsu_medalCenter:cp17}</p>
							<!--{/if}-->
							<!--{if $medal[limit]}-->
								<p><strong>{lang dsu_medalCenter:cp18}</strong></p>
								$medal[limit]
							<!--{/if}-->
					</div>
						<!--{/loop}-->
					</ul>
					<!--{if $multipage}-->$multipage<!--{/if}-->
				<!--{else}-->
					<!--{if $medallogs}-->
						<p class="emp">{lang dsu_medalCenter:cp19}</p>
					<!--{else}-->
						<p class="emp">{lang dsu_medalCenter:cp20}</p>
					<!--{/if}-->
				<!--{/if}-->
				</form>

				<!--{if $lastmedals}-->
					<h3 class="tbmu">{lang dsu_medalCenter:cp3}</h3>
					<ul class="el pbw mbw">
						<!--{loop $lastmedals $lastmedal}-->
						<li>
							<a href="home.php?mod=space&uid=$lastmedal[uid]" class="t"><!--{avatar($lastmedal[uid],small)}--></a>
							<a href="home.php?mod=space&uid=$lastmedal[uid]" class="xi2">$lastmedal[username]</a> {lang medals_message1} $lastmedal[dateline] {lang medals_message2} <strong>$medallist[$lastmedal['medalid']]['name']</strong> {lang dsu_medalCenter:cp21}
						</li>
						<!--{/loop}-->
					</ul>
				<!--{/if}-->
			<!--{elseif $_G[gp_action] == 'mymedal'}-->
				<!--{if $mymedals}-->
					<form name="name" action="{$thisurl}&op=sethide" method="post">
					<script type="text/javascript">
						function dsuMedal_hideMyMedal (mymedalid) {
							var medalp = $('mymedal'+mymedalid);
							if(medalp){
								var _do = medalp.style.color == 'gray' ? 2 : 1;
								medalp.style.color = _do == 1 ? 'gray' : 'black';
								$('mymedal_'+mymedalid).value = _do;
							}
						}
					</script>
					<div class="tbmu mbw cl"><span class="y xg1 xw0">{lang dsu_medalCenter:cp22} $num {lang dsu_medalCenter:cp23}</span><h3>{lang dsu_medalCenter:cp3}</h3>{lang dsu_medalCenter:cp24}</div>
					<ul class="ml mlm mdl mdlow cl">
						<!--{loop $mymedals $mymedal}-->
						<li id="mymedal{$mymedal[medalid]}" <!--{if $mymedal[hide] == 1}-->style="color:gray"<!--{/if}--> onclick="dsuMedal_hideMyMedal({$mymedal[medalid]})">
							<img src="{STATICURL}image/common/$mymedal[image]" alt="$mymedal[name]" />
							<p class="mtn"><strong>$mymedal[name]</strong></p>
							<input type="hidden" id="mymedal_{$mymedal[medalid]}" name="myMedalHide[{$mymedal[medalid]}]" value="$medal[hide]"/>
						</li>
						<!--{/loop}-->
					</ul>
					<button type="submit" class="pn pnp" /><strong>{lang dsu_medalCenter:cp25}</strong></button>
					</form>
				<!--{/if}-->

				<!--{if $medallogs}-->
					<h3 class="tbmu">{lang dsu_medalCenter:cp26}</h3>
					<ul class="el pbw mbw">
						<!--{loop $medallogs $medallog}-->
						<li style="padding-left:10px;">
							<!--{if $medallog['type'] == 2 || $medallog['type'] == 3}-->
								{lang dsu_medalCenter:cp27} $medallog[dateline]  {lang dsu_medalCenter:cp28} <strong>$medallog[name]</strong>{lang dsu_medalCenter:cp29}<!--{if $medallog['type'] == 2}-->{lang dsu_medalCenter:cp30}<!--{elseif $medallog['type'] == 3}-->{lang dsu_medalCenter:cp31}<!--{/if}-->
							<!--{elseif $medallog['type'] != 2 && $medallog['type'] != 3}-->
								{lang dsu_medalCenter:cp27} $medallog[dateline] {lang dsu_medalCenter:cp32} <strong>$medallog[name]</strong> {lang dsu_medalCenter:cp29}<!--{if $medallog[expiration]}-->{lang dsu_medalCenter:cp33} $medallog[expiration]<!--{else}-->{lang dsu_medalCenter:cp34}<!--{/if}-->
							<!--{/if}-->
						</li>
						<!--{/loop}-->
					</ul>
					<!--{if $multipage}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
				<!--{else}-->
					<p class="emp">{lang dsu_medalCenter:cp35}</p>
				<!--{/if}-->
			<!--{/if}-->
		</div>
	</div>
	<div class="appl">
		<!--{subtemplate common/userabout}-->
	</div>
</div>

<!--{template common/footer}-->